package com.zy.ai.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import reactor.core.publisher.Flux;

/**
 * @InterfaceName: TestService
 * @Description:
 * @Author: zhangyan
 * @Date: 2025-09-01 20:31
 **/

public interface TestService {

    @SystemMessage(fromResource = "prompt/base.txt")
    String chat(String  question);

    @SystemMessage(fromResource = "prompt/base.txt")
    Flux<String> chatFlux(@MemoryId int memoryId, @UserMessage String question);

    @SystemMessage(fromResource = "prompt/quest.txt")
    Flux<String> questFlux(@MemoryId int memoryId, @UserMessage String question);



}
